#pragma once
#include "glm/glm.hpp"
#include <d3d11.h>

struct Vertex
{
	glm::vec3 point;
	glm::vec3 normal;
	glm::vec4 color;
};
#define VERTEX_HLSL_STRUCT \
	"struct Vertex" \
	"{" \
	"float3 loc;" \
	"float3 normal;" \
	"float4 color;" \
	"};"

const D3D11_INPUT_ELEMENT_DESC VERTEX_LAYOUT[] =
{
	{ "POSITION", 0, DXGI_FORMAT_R32G32B32_FLOAT, 0, 0, D3D11_INPUT_PER_VERTEX_DATA, 0 },
	{ "NORMAL", 0, DXGI_FORMAT_R32G32B32_FLOAT, 0,  D3D11_APPEND_ALIGNED_ELEMENT, D3D11_INPUT_PER_VERTEX_DATA, 0 },
	{ "COLOR", 0, DXGI_FORMAT_R32G32B32A32_FLOAT, 0,  D3D11_APPEND_ALIGNED_ELEMENT, D3D11_INPUT_PER_VERTEX_DATA, 0 },
};
